package com.fluxtool.utill.date;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtill {

	/**
	 * 获取当前整点时间
	 * @return
	 */
	public static Integer getNowHours(){
		SimpleDateFormat sdf = new SimpleDateFormat("HH");
		return Integer.valueOf(sdf.format(new Date()));
	}
	

	/**
	 * 获取当前时间
	 * @return
	 */
	public static String getNowDate(){
		SimpleDateFormat sdf = new SimpleDateFormat("YYYY-MM-DD HH:mm:ss");
		return sdf.format(new Date());
	}
	
}
